package com.niiwoo.civet.trade.dto.kaola.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 请求基类
 * Created by wangjichao on 2017/8/29.
 */
@Setter
@Getter
public class BaseRequest implements Serializable{
    private static final long serialVersionUID = -1351582841633251660L;

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
        this.subjectId = String.valueOf(this.getProjectId());
    }

    /**
     * 标的ID
     */
    @JSONField(serialize = false)
    private Long projectId;

    @JSONField(name="subject_id")
    private String subjectId;
}
